<?php

//这是修改小组的视图

function admin_group_update($thisgroup){
	if($thisgroup){

		//总共5个视图
		$update_group[1]="测评人员";
		$update_group[2]="普通成员";
		$update_group[3]="参与项目";

		//$thisgroup[1]['20116496']['张三'];

		foreach ($update_group as $key => $value) {
			?>
			<div onclick=<?php echo "'displayg(".$key.")'"; ?> class="cpry">
				<div class="cpry_n">
					<div class="group_tag">
						<div class="group_tagi">
						<div class="group_tagii"></div>
						</div>
					</div>
					<a href=#><?php echo $value; ?></a>
				</div>
			</div>
			<div <?php echo "id='updateg_c".$key."'"; ?> class="cpry_c">
				<form action="admin.group.delete.php" method="post">
					<input type="hidden" name="fid" value=<?php echo "'".$key."'"; ?> />
					<input type="hidden" name="groupid" value=<?php echo "'".$thisgroup['groupid']."'"; ?> />
					<?php
					if(isset($thisgroup[$key])){
						foreach ($thisgroup[$key] as $keys => $value) {
							?>
							<div class="cpry_c_i">
								<input value="1" type="checkbox" 
									name=<?php echo "'".$keys."'"; ?> 
									id=<?php echo "'".$key.$keys."'"; ?> />
								<label for=<?php echo "'".$key.$keys."'"; ?> >
									<?php echo $value; ?>
								</label>
							</div>
							<?php
						}
					}
					$divid='admin_group_add_user';
					if($key==3){
						$divid='admin_group_add_project';
					}
					?>
					<input onclick=<?php echo "\"group_adduser('".$thisgroup['groupid']."',".$key.",'".$divid."')\""  ?> 
						class="cpry_c_b" type="button" value="增加"/>
					<input class="button" type="submit" value="删除"/>
		</form>
</div>



<?php
		}
	}
	else
	{
		echo "欢迎进入分组管理系统";
	}
}
?>